package Model.SaveLoad;

import java.io.Serializable;

import java.util.Map;

import Model.Player;
import Model.Planet.Planet;
/**
 * Class is wrapper class that holds the objects needed to be saved/loaded
 */
public class SaveLoadModel implements Serializable{

	/**
	 * 
	 */
	private final Map<String,Planet> planets;

	/**
	 * 
	 */
	private final Player player;

	/**
	 * constructor
	 * @param planets
	 * @param player
	 */
	public SaveLoadModel(Map<String, Planet> planets, Player player){
		this.planets = planets;
		this.player = player;
	}

	/**
	 * getter for planets
	 * @return planets
	 */
	public Map<String, Planet> getPlanets(){
		return planets;
	}

	/**
	 * getter for player
	 * @return player
	 */
	public Player getPlayer(){
		return player;
	}
	
	public String toString(){
		return super.toString();
	}
}
